home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-eplain-archive / 000031_cadwell@shishi.ca.boeing.com_Tue Sep 27 12:02:49 1994.msg < prev    next >
Internet Message Format  |  1995-01-08  |  2KB

  1. Received: from atc.boeing.com by cs.umb.edu with SMTP id AA08395
  2.   (5.65c/IDA-1.4.4 for <tex-eplain@cs.umb.edu>); Tue, 27 Sep 1994 22:02:22 -0400
  3. Received: by atc.boeing.com (5.57) 
  4.     id AA20081; Tue, 27 Sep 94 19:05:22 -0700
  5. Received: from shishi.ca.boeing.com by splinter.boeing.com with SMTP
  6.     (16.6/16.2) id AA12347; Tue, 27 Sep 94 19:02:58 -0700
  7. Received: by shishi.ca.boeing.com (920330.SGI/920502.SGI)
  8.     for @splinter.ca.boeing.com:tex-eplain@cs.umb.edu id AA02517; Tue, 27 Sep 94 19:02:49 -0700
  9. Date: Tue, 27 Sep 94 19:02:49 -0700
  10. From: cadwell@shishi.ca.boeing.com (Jim Cadwell)
  11. Message-Id: <9409280202.AA02517@shishi.ca.boeing.com>
  12. To: tex-eplain@cs.umb.edu
  13. Subject: Having problem with eplain table of contents [2nd e-mail try]
  14.  
  15. [You may be receiving this message for the second time--e-mail problem here.]
  16.  
  17. Hello,
  18. I am having a problem with eplain table of contents.
  19. I do not know if it is me, the documentation, or
  20. centered elsewhere.
  21.  
  22. My version is 2.6: 2 May 1994 (and plain 3.1415).
  23. And I'm running on an SGI IRIX 4.0.5.
  24.  
  25. In the first case, a tex file thus
  26.  
  27. \input eplain
  28. \writetocentry{chapter}{part1}
  29. \centerline{Contents}
  30. \readtocfile
  31. \bye
  32.  
  33. only produces the line "Contents."
  34. A peek into the toc file after running tex shows that it has
  35. the correct entries:
  36.  
  37. \tocchapterentry {part1}{1}
  38.  
  39. The above results suggest (1) that the \writetocentry
  40. opens the toc file for writing (2) since after running tex
  41. the data IS in the toc file, \readtocfile ``found'' that
  42. the toc file was already open, so did not reopen it, and
  43. (3) since there are no table of contents entries in the
  44. output that on \readtocfile the file pointer was passed
  45. the data (at the end of file), thus, no data read.
  46.  
  47. In the second case I add a \readtocfile before the
  48. first \writetocentry, per the doc:
  49.  
  50. \input eplain
  51. \readtocfile
  52. \writetocentry{chapter}{part1}
  53. \centerline{Contents}
  54. \readtocfile
  55. \bye
  56.  
  57. Now, the output on the first run of tex is as above, but
  58. on a second run, with a toc from the first run still present,
  59. the output is
  60.  
  61. part1 ........................... 1
  62.     Contents
  63.  
  64. Thus the first \readtocfile output the table entry, followed
  65. by the ``Contents'' line.
  66.  
  67. Thank you much for taking this moment to consider this problem,
  68. I am enjoying learning and using eplain!!
  69.  
  70. Jim
  71. --
  72.  
  73. Jim Cadwell
  74. cadwell@shishi.ca.boeing.com
  75. (206) 655-1415
  76.